.class public Les/y9;
.super Les/t9;
.source "AudioProcessor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/y9$f;
    }
.end annotation


# instance fields
.field private A:Les/m7$h;

.field private B:Les/l9$h;

.field private C:Les/v9$b;

.field private D:Les/u9$a;

.field private b:Ljava/lang/String;

.field private c:Les/y9$f;

.field private d:Les/aa;

.field private e:Z

.field private f:I

.field private g:I

.field private h:Les/m7;

.field private i:Les/o7;

.field private j:Les/u9;

.field private k:Les/v9;

.field private l:Landroid/media/MediaFormat;

.field private m:Z

.field private n:Les/ea;

.field private o:J

.field private p:Ljava/nio/ByteBuffer;

.field private q:Les/ca;

.field private r:Ljava/nio/ByteBuffer;

.field private s:I

.field private t:J

.field private u:Lcom/esfile/screen/recorder/media/util/l;

.field private v:J

.field private w:J

.field private x:Z

.field private final y:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/media/util/l;",
            ">;"
        }
    .end annotation
.end field

.field private z:Lcom/esfile/screen/recorder/media/util/m;


# direct methods
.method public constructor <init>(Ljava/lang/String;Les/y9$f;Les/aa;Z)V
    .locals 2

    .line 1
    invoke-direct {p0}, Les/t9;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/y9;->m:Z

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Les/y9;->t:J

    .line 4
    iput-wide v0, p0, Les/y9;->v:J

    const-wide/16 v0, -0x1

    .line 5
    iput-wide v0, p0, Les/y9;->w:J

    const/4 v0, 0x1

    .line 6
    iput-boolean v0, p0, Les/y9;->x:Z

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Les/y9;->y:Ljava/util/List;

    .line 8
    new-instance v0, Les/y9$a;

    invoke-direct {v0, p0}, Les/y9$a;-><init>(Les/y9;)V

    iput-object v0, p0, Les/y9;->z:Lcom/esfile/screen/recorder/media/util/m;

    .line 9
    new-instance v0, Les/y9$b;

    invoke-direct {v0, p0}, Les/y9$b;-><init>(Les/y9;)V

    iput-object v0, p0, Les/y9;->A:Les/m7$h;

    .line 10
    new-instance v0, Les/y9$c;

    invoke-direct {v0, p0}, Les/y9$c;-><init>(Les/y9;)V

    iput-object v0, p0, Les/y9;->B:Les/l9$h;

    .line 11
    new-instance v0, Les/y9$d;

    invoke-direct {v0, p0}, Les/y9$d;-><init>(Les/y9;)V

    iput-object v0, p0, Les/y9;->C:Les/v9$b;

    .line 12
    new-instance v0, Les/y9$e;

    invoke-direct {v0, p0}, Les/y9$e;-><init>(Les/y9;)V

    iput-object v0, p0, Les/y9;->D:Les/u9$a;

    if-eqz p2, :cond_0

    .line 13
    iput-object p1, p0, Les/y9;->b:Ljava/lang/String;

    .line 14
    iput-object p2, p0, Les/y9;->c:Les/y9$f;

    .line 15
    iput-object p3, p0, Les/y9;->d:Les/aa;

    .line 16
    iput-boolean p4, p0, Les/y9;->e:Z

    .line 17
    iget p1, p2, Les/y9$f;->c:I

    iput p1, p0, Les/y9;->f:I

    .line 18
    iget p1, p2, Les/y9$f;->d:I

    iput p1, p0, Les/y9;->g:I

    return-void

    .line 19
    :cond_0
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "The format is null!"

    invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method static synthetic a(Les/y9;J)J
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Les/y9;->c(J)J

    move-result-wide p0

    return-wide p0
.end method

.method private a(Ljava/lang/String;)J
    .locals 11

    .line 6
    new-instance v0, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v0}, Landroid/media/MediaMetadataRetriever;-><init>()V

    const-wide/16 v1, 0x0

    .line 7
    :try_start_0
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    const/16 p1, 0x9

    .line 8
    invoke-virtual {v0, p1}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object p1

    .line 9
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    int-to-long v3, p1

    const-wide/16 v5, 0x3e8

    mul-long v3, v3, v5

    .line 10
    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v5, p1, Les/y9$f;->a:J

    invoke-static {v5, v6, v1, v2}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v5

    .line 11
    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v7, p1, Les/y9$f;->b:J

    cmp-long p1, v7, v3

    if-gtz p1, :cond_0

    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v7, p1, Les/y9$f;->b:J

    cmp-long p1, v7, v1

    if-ltz p1, :cond_1

    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v7, p1, Les/y9$f;->b:J

    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v9, p1, Les/y9$f;->a:J

    cmp-long p1, v7, v9

    if-gez p1, :cond_1

    .line 12
    :cond_0
    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iput-wide v3, p1, Les/y9$f;->b:J

    .line 13
    :cond_1
    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v7, p1, Les/y9$f;->b:J

    cmp-long p1, v7, v1

    if-ltz p1, :cond_2

    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-wide v3, p1, Les/y9$f;->b:J

    .line 14
    :cond_2
    iget-object p1, p0, Les/y9;->n:Les/ea;

    invoke-virtual {p1, v5, v6, v3, v4}, Les/ea;->a(JJ)J

    move-result-wide v1
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 15
    :catch_0
    :try_start_1
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_1
    .catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_2

    goto :goto_0

    :catchall_0
    move-exception p1

    :try_start_2
    invoke-virtual {v0}, Landroid/media/MediaMetadataRetriever;->release()V
    :try_end_2
    .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_2} :catch_1

    .line 16
    :catch_1
    throw p1

    :catch_2
    :goto_0
    return-wide v1
.end method

.method static synthetic a(Les/y9;Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/y9;->c(Lcom/esfile/screen/recorder/media/util/l;)V

    return-void
.end method

.method static synthetic a(Les/y9;)Z
    .locals 0

    .line 2
    invoke-virtual {p0}, Les/t9;->b()Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/y9;Landroid/media/MediaFormat;)Z
    .locals 0

    .line 3
    invoke-virtual {p0, p1}, Les/t9;->a(Landroid/media/MediaFormat;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/y9;Ljava/lang/Exception;)Z
    .locals 0

    .line 5
    invoke-virtual {p0, p1}, Les/t9;->a(Ljava/lang/Exception;)Z

    move-result p0

    return p0
.end method

.method private b(J)I
    .locals 3

    .line 14
    iget-object v0, p0, Les/y9;->k:Les/v9;

    if-eqz v0, :cond_0

    .line 15
    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget p1, p1, Les/y9$f;->c:I

    return p1

    .line 16
    :cond_0
    iget-object v0, p0, Les/y9;->n:Les/ea;

    invoke-virtual {v0, p1, p2}, Les/ea;->a(J)F

    move-result p1

    .line 17
    iget-object p2, p0, Les/y9;->c:Les/y9$f;

    iget p2, p2, Les/y9$f;->c:I

    int-to-float p2, p2

    div-float/2addr p2, p1

    float-to-int p1, p2

    .line 18
    iget p2, p0, Les/y9;->s:I

    if-eq p2, p1, :cond_3

    iget-object p2, p0, Les/y9;->p:Ljava/nio/ByteBuffer;

    if-eqz p2, :cond_1

    .line 19
    invoke-virtual {p2}, Ljava/nio/ByteBuffer;->position()I

    move-result p2

    if-nez p2, :cond_3

    .line 20
    :cond_1
    iget p2, p0, Les/y9;->f:I

    if-eq p2, p1, :cond_2

    .line 21
    iget v0, p0, Les/y9;->g:I

    mul-int/lit16 v1, v0, 0x2000

    .line 22
    new-instance v2, Les/ca;

    invoke-direct {v2, p2, p1, v0, v1}, Les/ca;-><init>(IIII)V

    iput-object v2, p0, Les/y9;->q:Les/ca;

    .line 23
    invoke-static {v1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p2

    iput-object p2, p0, Les/y9;->p:Ljava/nio/ByteBuffer;

    .line 24
    iget-object p2, p0, Les/y9;->q:Les/ca;

    invoke-virtual {p2, v1}, Les/ca;->a(I)I

    move-result p2

    invoke-static {p2}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object p2

    iput-object p2, p0, Les/y9;->r:Ljava/nio/ByteBuffer;

    goto :goto_0

    :cond_2
    const/4 p2, 0x0

    .line 25
    iput-object p2, p0, Les/y9;->q:Les/ca;

    .line 26
    :goto_0
    iput p1, p0, Les/y9;->s:I

    :cond_3
    return p1
.end method

.method private b(Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 17

    move-object/from16 v1, p0

    move-object/from16 v2, p1

    .line 27
    iget-object v0, v2, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 28
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 29
    iget-object v3, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v3, v3, Landroid/media/MediaCodec$BufferInfo;->offset:I

    invoke-virtual {v0, v3}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 30
    iget-object v3, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v4, v3, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget v3, v3, Landroid/media/MediaCodec$BufferInfo;->size:I

    add-int/2addr v4, v3

    invoke-virtual {v0, v4}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    .line 31
    iget-object v3, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v3, v3, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v3, v3, 0x4

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-eqz v3, :cond_0

    const/4 v3, 0x1

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    :goto_0
    if-eqz v3, :cond_3

    .line 32
    iget-object v6, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    if-eqz v6, :cond_1

    .line 33
    invoke-virtual {v6}, Ljava/nio/ByteBuffer;->position()I

    move-result v6

    if-gtz v6, :cond_2

    :cond_1
    iget-object v6, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    if-eqz v6, :cond_3

    .line 34
    :cond_2
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v6

    if-gtz v6, :cond_3

    .line 35
    invoke-virtual {v0, v5}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 36
    iget v6, v1, Les/y9;->g:I

    mul-int/lit8 v6, v6, 0x2

    invoke-virtual {v0, v6}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;

    .line 37
    :cond_3
    :try_start_0
    iget-boolean v6, v1, Les/y9;->m:Z

    if-eqz v6, :cond_15

    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v6

    if-lez v6, :cond_15

    .line 38
    iget-object v6, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v6, v6, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    invoke-direct {v1, v6, v7}, Les/y9;->b(J)I

    move-result v6

    .line 39
    iget-object v7, v1, Les/y9;->q:Les/ca;

    const/4 v8, 0x0

    if-nez v7, :cond_4

    .line 40
    iget v6, v1, Les/y9;->g:I

    iget-object v7, v1, Les/y9;->c:Les/y9$f;

    iget v7, v7, Les/y9$f;->d:I

    invoke-static {v0, v6, v7}, Les/x9;->a(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;

    move-result-object v6

    const/4 v7, 0x0

    goto :goto_5

    .line 41
    :cond_4
    iget v7, v1, Les/y9;->s:I

    if-ne v6, v7, :cond_6

    iget-object v7, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    .line 42
    invoke-static {v0, v7}, Les/x9;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Z

    move-result v7

    if-nez v7, :cond_6

    if-eqz v3, :cond_5

    goto :goto_1

    :cond_5
    move-object v6, v8

    goto :goto_4

    .line 43
    :cond_6
    :goto_1
    iget v7, v1, Les/y9;->s:I

    if-ne v6, v7, :cond_7

    if-eqz v3, :cond_8

    .line 44
    :cond_7
    iget-object v7, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    invoke-virtual {v7}, Ljava/nio/ByteBuffer;->position()I

    move-result v7

    if-lez v7, :cond_3

    .line 45
    iget-object v7, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    invoke-virtual {v7}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;

    .line 46
    :cond_8
    iget-object v7, v1, Les/y9;->q:Les/ca;

    iget-object v9, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    iget-object v10, v1, Les/y9;->r:Ljava/nio/ByteBuffer;

    iget-object v11, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    invoke-virtual {v11}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v11

    iget v12, v1, Les/y9;->s:I

    if-ne v6, v12, :cond_a

    if-eqz v3, :cond_9

    .line 47
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v6

    if-gtz v6, :cond_9

    goto :goto_2

    :cond_9
    const/4 v6, 0x0

    goto :goto_3

    :cond_a
    :goto_2
    const/4 v6, 0x1

    .line 48
    :goto_3
    invoke-virtual {v7, v9, v10, v11, v6}, Les/ca;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IZ)I

    .line 49
    iget-object v6, v1, Les/y9;->r:Ljava/nio/ByteBuffer;

    iget v7, v1, Les/y9;->g:I

    iget-object v9, v1, Les/y9;->c:Les/y9$f;

    iget v9, v9, Les/y9$f;->d:I

    invoke-static {v6, v7, v9}, Les/x9;->a(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;

    move-result-object v6

    .line 50
    iget-object v7, v1, Les/y9;->p:Ljava/nio/ByteBuffer;

    invoke-virtual {v7}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 51
    :goto_4
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v7

    :goto_5
    if-eqz v6, :cond_3

    if-eqz v3, :cond_b

    if-gtz v7, :cond_b

    const/4 v7, 0x1

    goto :goto_6

    :cond_b
    const/4 v7, 0x0

    .line 52
    :cond_c
    :goto_6
    iget-boolean v9, v1, Les/y9;->m:Z

    if-eqz v9, :cond_3

    invoke-virtual {v6}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v9

    if-lez v9, :cond_3

    .line 53
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    if-nez v9, :cond_d

    .line 54
    invoke-direct/range {p0 .. p0}, Les/y9;->h()Lcom/esfile/screen/recorder/media/util/l;

    move-result-object v9

    iput-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    .line 55
    :cond_d
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v9, :cond_e

    .line 56
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    return-void

    .line 57
    :cond_e
    :try_start_1
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-static {v6, v9}, Les/x9;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)Z

    move-result v9

    if-nez v9, :cond_f

    if-eqz v7, :cond_c

    :cond_f
    if-eqz v7, :cond_10

    .line 58
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v9}, Ljava/nio/ByteBuffer;->position()I

    move-result v9

    if-lez v9, :cond_10

    .line 59
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v9}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;

    .line 60
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v10, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v10}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v10

    iput v10, v9, Landroid/media/MediaCodec$BufferInfo;->size:I

    goto :goto_7

    .line 61
    :cond_10
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v10, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v10}, Ljava/nio/ByteBuffer;->capacity()I

    move-result v10

    iput v10, v9, Landroid/media/MediaCodec$BufferInfo;->size:I

    .line 62
    :goto_7
    iget-object v9, v1, Les/y9;->c:Les/y9$f;

    iget v9, v9, Les/y9$f;->e:F

    const/high16 v10, 0x3f800000    # 1.0f

    cmpl-float v9, v9, v10

    if-eqz v9, :cond_11

    .line 63
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v11, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    iget-object v9, v1, Les/y9;->c:Les/y9$f;

    iget v12, v9, Les/y9$f;->e:F

    const/4 v13, 0x0

    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 64
    invoke-virtual {v9}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v14

    const/16 v15, 0x10

    .line 65
    invoke-static/range {v10 .. v15}, Les/x9;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;FIII)V

    .line 66
    :cond_11
    iget-object v9, v1, Les/y9;->d:Les/aa;

    if-eqz v9, :cond_12

    .line 67
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-wide v10, v1, Les/y9;->v:J

    iput-wide v10, v9, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    .line 68
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-wide v10, v1, Les/y9;->v:J

    iput-wide v10, v9, Lcom/esfile/screen/recorder/media/util/l;->c:J

    .line 69
    iget-object v9, v1, Les/y9;->d:Les/aa;

    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v11, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    invoke-virtual {v9, v10, v11}, Les/aa;->a(Lcom/esfile/screen/recorder/media/util/l;Lcom/esfile/screen/recorder/media/util/l;)I

    move-result v9

    if-gez v9, :cond_13

    .line 70
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v9}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v9

    .line 71
    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v11, v10, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v12, v10, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    const/high16 v13, 0x3f000000    # 0.5f

    const/4 v14, 0x0

    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v10, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    .line 72
    invoke-virtual {v10}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v15

    const/16 v16, 0x10

    .line 73
    invoke-static/range {v11 .. v16}, Les/x9;->a(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;FIII)V

    goto :goto_8

    .line 74
    :cond_12
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v9, v9, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v9}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v9

    :cond_13
    :goto_8
    if-lez v9, :cond_14

    .line 75
    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v10, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iput v5, v10, Landroid/media/MediaCodec$BufferInfo;->offset:I

    .line 76
    iget-object v10, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v10, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iput v9, v10, Landroid/media/MediaCodec$BufferInfo;->size:I

    .line 77
    iget-wide v10, v1, Les/y9;->t:J

    int-to-long v12, v9

    add-long/2addr v10, v12

    iput-wide v10, v1, Les/y9;->t:J

    .line 78
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-object v10, v9, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget-object v9, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v11, v9, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget-object v9, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v12, v9, Landroid/media/MediaCodec$BufferInfo;->size:I

    iget-wide v13, v1, Les/y9;->v:J

    iget-object v9, v2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iget v15, v9, Landroid/media/MediaCodec$BufferInfo;->flags:I

    invoke-virtual/range {v10 .. v15}, Landroid/media/MediaCodec$BufferInfo;->set(IIJI)V

    .line 79
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    iget-wide v10, v1, Les/y9;->v:J

    iput-wide v10, v9, Lcom/esfile/screen/recorder/media/util/l;->c:J

    .line 80
    iget-object v9, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;

    invoke-direct {v1, v9}, Les/y9;->d(Lcom/esfile/screen/recorder/media/util/l;)V

    .line 81
    iget-wide v9, v1, Les/y9;->t:J

    const-wide/32 v11, 0xf4240

    mul-long v9, v9, v11

    iget-object v11, v1, Les/y9;->c:Les/y9$f;

    iget v11, v11, Les/y9$f;->c:I

    iget-object v12, v1, Les/y9;->c:Les/y9$f;

    iget v12, v12, Les/y9$f;->d:I

    mul-int v11, v11, v12

    int-to-long v11, v11

    const-wide/16 v13, 0x2

    mul-long v11, v11, v13

    div-long/2addr v9, v11

    .line 82
    invoke-direct {v1, v9, v10}, Les/y9;->c(J)J

    move-result-wide v9

    iput-wide v9, v1, Les/y9;->v:J

    .line 83
    :cond_14
    iput-object v8, v1, Les/y9;->u:Lcom/esfile/screen/recorder/media/util/l;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto/16 :goto_6

    .line 84
    :cond_15
    :goto_9
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    goto :goto_a

    :catchall_0
    move-exception v0

    goto :goto_b

    :catch_0
    move-exception v0

    .line 85
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_9

    :goto_a
    return-void

    .line 86
    :goto_b
    invoke-virtual/range {p1 .. p1}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    .line 87
    goto :goto_d

    :goto_c
    throw v0

    :goto_d
    goto :goto_c
.end method

.method static synthetic b(Les/y9;Landroid/media/MediaFormat;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Les/y9;->c(Landroid/media/MediaFormat;)V

    return-void
.end method

.method private b(Landroid/media/MediaFormat;)Z
    .locals 7

    const/4 v0, 0x0

    const-string v1, "sample-rate"

    .line 5
    invoke-static {p1, v1, v0}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v1

    const-string v2, "channel-count"

    .line 6
    invoke-static {p1, v2, v0}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v2

    const-string v3, "mime"

    .line 7
    invoke-virtual {p1, v3}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 8
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "needToProcess:<"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v5, p0, Les/y9;->c:Les/y9$f;

    iget v5, v5, Les/y9$f;->d:I

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, ">, <"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget v4, v4, Les/y9$f;->c:I

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget v4, v4, Les/y9$f;->e:F

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Les/y9;->d:Les/aa;

    const/4 v6, 0x1

    if-eqz v4, :cond_0

    const/4 v4, 0x1

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    :goto_0
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ">, <speed size:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget-object v4, v4, Les/y9$f;->f:Ljava/util/List;

    if-eqz v4, :cond_1

    .line 9
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    goto :goto_1

    :cond_1
    const/4 v4, 0x0

    :goto_1
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v4, ">"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, "apor"

    .line 10
    invoke-static {v4, v3}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    iget-object v3, p0, Les/y9;->c:Les/y9$f;

    iget v4, v3, Les/y9$f;->d:I

    if-ne v2, v4, :cond_2

    iget v2, v3, Les/y9$f;->c:I

    if-ne v1, v2, :cond_2

    iget v1, v3, Les/y9$f;->e:F

    const/high16 v2, 0x3f800000    # 1.0f

    cmpl-float v1, v1, v2

    if-nez v1, :cond_2

    iget-object v1, p0, Les/y9;->d:Les/aa;

    if-nez v1, :cond_2

    const-string v1, "audio/mp4a-latm"

    .line 12
    invoke-static {p1, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_2

    iget-object p1, p0, Les/y9;->c:Les/y9$f;

    iget-object p1, p1, Les/y9$f;->f:Ljava/util/List;

    if-eqz p1, :cond_3

    .line 13
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_3

    :cond_2
    const/4 v0, 0x1

    :cond_3
    return v0
.end method

.method static synthetic b(Les/y9;)Z
    .locals 0

    .line 2
    invoke-virtual {p0}, Les/t9;->b()Z

    move-result p0

    return p0
.end method

.method static synthetic b(Les/y9;Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Les/t9;->a(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result p0

    return p0
.end method

.method static synthetic b(Les/y9;Ljava/lang/Exception;)Z
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Les/t9;->a(Ljava/lang/Exception;)Z

    move-result p0

    return p0
.end method

.method private declared-synchronized c(J)J
    .locals 4

    monitor-enter p0

    .line 9
    :try_start_0
    iget-boolean v0, p0, Les/y9;->x:Z

    if-eqz v0, :cond_0

    .line 10
    iget-wide v0, p0, Les/y9;->v:J

    add-long/2addr v0, p1

    iput-wide v0, p0, Les/y9;->v:J

    .line 11
    iput-wide p1, p0, Les/y9;->w:J

    const/4 p1, 0x0

    .line 12
    iput-boolean p1, p0, Les/y9;->x:Z

    goto :goto_0

    .line 13
    :cond_0
    iget-wide v0, p0, Les/y9;->w:J

    cmp-long v2, p1, v0

    if-ltz v2, :cond_1

    .line 14
    iget-wide v0, p0, Les/y9;->v:J

    iget-wide v2, p0, Les/y9;->w:J

    sub-long v2, p1, v2

    add-long/2addr v0, v2

    iput-wide v0, p0, Les/y9;->v:J

    .line 15
    iput-wide p1, p0, Les/y9;->w:J

    .line 16
    :cond_1
    :goto_0
    iget-wide p1, p0, Les/y9;->v:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-wide p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method static synthetic c(Les/y9;)Landroid/media/MediaFormat;
    .locals 0

    .line 1
    iget-object p0, p0, Les/y9;->l:Landroid/media/MediaFormat;

    return-object p0
.end method

.method private c(Landroid/media/MediaFormat;)V
    .locals 2

    .line 4
    iput-object p1, p0, Les/y9;->l:Landroid/media/MediaFormat;

    const/4 v0, 0x0

    const-string v1, "sample-rate"

    .line 5
    invoke-static {p1, v1, v0}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Les/y9;->f:I

    const-string v1, "channel-count"

    .line 6
    invoke-static {p1, v1, v0}, Lcom/esfile/screen/recorder/media/util/s;->a(Landroid/media/MediaFormat;Ljava/lang/String;I)I

    move-result p1

    iput p1, p0, Les/y9;->g:I

    return-void
.end method

.method private c(Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 3

    .line 17
    iget-object v0, p0, Les/y9;->y:Ljava/util/List;

    monitor-enter v0

    .line 18
    :try_start_0
    iget-boolean v1, p0, Les/y9;->m:Z

    if-nez v1, :cond_0

    .line 19
    monitor-exit v0

    return-void

    .line 20
    :cond_0
    iget-object v1, p1, Lcom/esfile/screen/recorder/media/util/l;->b:Ljava/nio/ByteBuffer;

    invoke-virtual {v1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 21
    iget-object v1, p1, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    const/4 v2, 0x0

    iput v2, v1, Landroid/media/MediaCodec$BufferInfo;->flags:I

    .line 22
    iget-object v1, p1, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iput v2, v1, Landroid/media/MediaCodec$BufferInfo;->size:I

    .line 23
    iget-object v1, p0, Les/y9;->y:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 24
    iget-object p1, p0, Les/y9;->y:Ljava/util/List;

    invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V

    .line 25
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1
.end method

.method static synthetic c(Les/y9;Landroid/media/MediaFormat;)Z
    .locals 0

    .line 3
    invoke-virtual {p0, p1}, Les/t9;->a(Landroid/media/MediaFormat;)Z

    move-result p0

    return p0
.end method

.method static synthetic c(Les/y9;Lcom/esfile/screen/recorder/media/util/l;)Z
    .locals 0

    .line 2
    invoke-virtual {p0, p1}, Les/t9;->a(Lcom/esfile/screen/recorder/media/util/l;)Z

    move-result p0

    return p0
.end method

.method private d(Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 5

    .line 3
    iget-object v0, p0, Les/y9;->i:Les/o7;

    invoke-virtual {v0, p1}, Les/o7;->b(Lcom/esfile/screen/recorder/media/util/l;)V

    .line 4
    iget-object p1, p0, Les/y9;->k:Les/v9;

    if-eqz p1, :cond_0

    .line 5
    iget-wide v0, p0, Les/y9;->v:J

    iget-wide v2, p0, Les/y9;->o:J

    cmp-long v4, v0, v2

    if-ltz v4, :cond_0

    .line 6
    invoke-virtual {p1}, Les/v9;->b()V

    .line 7
    invoke-direct {p0}, Les/y9;->i()V

    :cond_0
    return-void
.end method

.method static synthetic d(Les/y9;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Les/y9;->i()V

    return-void
.end method

.method static synthetic d(Les/y9;Lcom/esfile/screen/recorder/media/util/l;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/y9;->b(Lcom/esfile/screen/recorder/media/util/l;)V

    return-void
.end method

.method static synthetic e(Les/y9;)Lcom/esfile/screen/recorder/media/util/m;
    .locals 0

    .line 1
    iget-object p0, p0, Les/y9;->z:Lcom/esfile/screen/recorder/media/util/m;

    return-object p0
.end method

.method static synthetic f(Les/y9;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/y9;->y:Ljava/util/List;

    return-object p0
.end method

.method private h()Lcom/esfile/screen/recorder/media/util/l;
    .locals 4

    .line 1
    :try_start_0
    iget-object v0, p0, Les/y9;->y:Ljava/util/List;

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 2
    :goto_0
    :try_start_1
    iget-boolean v1, p0, Les/y9;->m:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Les/y9;->y:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 3
    iget-object v1, p0, Les/y9;->y:Ljava/util/List;

    const-wide/16 v2, 0xa

    invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v1, p0, Les/y9;->y:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    .line 5
    iget-object v1, p0, Les/y9;->y:Ljava/util/List;

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/media/util/l;

    monitor-exit v0

    return-object v1

    .line 6
    :cond_1
    monitor-exit v0

    goto :goto_1

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    :goto_1
    const/4 v0, 0x0

    return-object v0
.end method

.method private i()V
    .locals 5

    .line 1
    iget-object v0, p0, Les/y9;->i:Les/o7;

    if-eqz v0, :cond_0

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/media/util/l;

    const/4 v2, 0x0

    const-wide/16 v3, 0x0

    invoke-direct {v1, v2, v3, v4}, Lcom/esfile/screen/recorder/media/util/l;-><init>(Ljava/nio/ByteBuffer;J)V

    invoke-virtual {v0, v1}, Les/o7;->b(Lcom/esfile/screen/recorder/media/util/l;)V

    :cond_0
    return-void
.end method


# virtual methods
.method public declared-synchronized a(J)V
    .locals 1

    monitor-enter p0

    .line 17
    :try_start_0
    iget-boolean v0, p0, Les/y9;->m:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 18
    monitor-exit p0

    return-void

    .line 19
    :cond_0
    :try_start_1
    iput-wide p1, p0, Les/y9;->v:J
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 20
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method protected a()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method protected c()Z
    .locals 1

    .line 7
    invoke-virtual {p0}, Les/y9;->e()V

    .line 8
    invoke-super {p0}, Les/t9;->c()Z

    move-result v0

    return v0
.end method

.method public e()V
    .locals 2

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/y9;->m:Z

    .line 3
    iget-object v0, p0, Les/y9;->h:Les/m7;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {v0, v1}, Les/m7;->a(Les/m7$h;)V

    .line 5
    iget-object v0, p0, Les/y9;->h:Les/m7;

    invoke-virtual {v0}, Les/m7;->stop()V

    .line 6
    :cond_0
    iget-object v0, p0, Les/y9;->k:Les/v9;

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {v0, v1}, Les/v9;->a(Les/v9$b;)V

    .line 8
    iget-object v0, p0, Les/y9;->k:Les/v9;

    invoke-virtual {v0}, Les/v9;->b()V

    .line 9
    :cond_1
    iget-object v0, p0, Les/y9;->i:Les/o7;

    if-eqz v0, :cond_2

    .line 10
    invoke-virtual {v0, v1}, Les/l9;->a(Les/l9$h;)V

    .line 11
    iget-object v0, p0, Les/y9;->i:Les/o7;

    invoke-virtual {v0}, Les/o7;->q()V

    .line 12
    :cond_2
    iget-object v0, p0, Les/y9;->j:Les/u9;

    if-eqz v0, :cond_3

    .line 13
    invoke-virtual {v0, v1}, Les/u9;->a(Les/u9$a;)V

    .line 14
    iget-object v0, p0, Les/y9;->j:Les/u9;

    invoke-virtual {v0}, Les/u9;->stop()V

    :cond_3
    return-void
.end method

.method public f()Les/y9$f;
    .locals 1

    .line 2
    iget-object v0, p0, Les/y9;->c:Les/y9$f;

    return-object v0
.end method

.method public g()Z
    .locals 11

    .line 1
    iget-object v0, p0, Les/y9;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_4

    new-instance v0, Ljava/io/File;

    iget-object v3, p0, Les/y9;->b:Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Les/y9;->c:Les/y9$f;

    iget v0, v0, Les/y9$f;->e:F

    const/4 v3, 0x0

    cmpg-float v0, v0, v3

    if-gtz v0, :cond_1

    goto :goto_1

    .line 3
    :cond_1
    new-instance v0, Les/u9;

    iget-object v3, p0, Les/y9;->b:Ljava/lang/String;

    invoke-direct {v0, v3, v2}, Les/u9;-><init>(Ljava/lang/String;Z)V

    iput-object v0, p0, Les/y9;->j:Les/u9;

    .line 4
    invoke-virtual {v0}, Les/u9;->a()Landroid/media/MediaFormat;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 5
    iget-object v3, p0, Les/y9;->j:Les/u9;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget-wide v5, v4, Les/y9$f;->a:J

    iget-wide v7, v4, Les/y9$f;->b:J

    const/4 v9, 0x2

    move-wide v4, v5

    move-wide v6, v7

    move v8, v9

    .line 6
    invoke-virtual/range {v3 .. v8}, Les/u9;->a(JJI)J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-gez v7, :cond_2

    goto :goto_1

    .line 7
    :cond_2
    invoke-direct {p0, v0}, Les/y9;->b(Landroid/media/MediaFormat;)Z

    move-result v3

    if-nez v3, :cond_3

    .line 8
    invoke-direct {p0, v0}, Les/y9;->c(Landroid/media/MediaFormat;)V

    .line 9
    iget-object v0, p0, Les/y9;->j:Les/u9;

    iget-object v1, p0, Les/y9;->D:Les/u9$a;

    invoke-virtual {v0, v1}, Les/u9;->a(Les/u9$a;)V

    .line 10
    iget-object v0, p0, Les/y9;->j:Les/u9;

    invoke-virtual {v0}, Les/u9;->b()V

    .line 11
    iput-boolean v2, p0, Les/y9;->m:Z

    return v2

    .line 12
    :cond_3
    iget-object v0, p0, Les/y9;->j:Les/u9;

    invoke-virtual {v0}, Les/u9;->stop()V

    const/4 v0, 0x0

    goto :goto_2

    .line 13
    :cond_4
    :goto_0
    iget-boolean v0, p0, Les/y9;->e:Z

    if-nez v0, :cond_5

    return v1

    :cond_5
    :goto_1
    const/4 v0, 0x1

    :goto_2
    if-eqz v0, :cond_7

    .line 14
    iget-boolean v0, p0, Les/y9;->e:Z

    if-eqz v0, :cond_6

    const/4 v0, 0x1

    goto :goto_3

    :cond_6
    return v1

    :cond_7
    const/4 v0, 0x0

    :goto_3
    const/4 v3, -0x1

    .line 15
    iput v3, p0, Les/y9;->s:I

    const/4 v3, 0x0

    .line 16
    iput-object v3, p0, Les/y9;->q:Les/ca;

    .line 17
    new-instance v3, Lcom/esfile/screen/recorder/media/encode/audio/a;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget v5, v4, Les/y9$f;->c:I

    iget v4, v4, Les/y9$f;->d:I

    invoke-direct {v3, v5, v4, v1}, Lcom/esfile/screen/recorder/media/encode/audio/a;-><init>(IIZ)V

    iput-object v3, p0, Les/y9;->i:Les/o7;

    .line 18
    iget-object v4, p0, Les/y9;->B:Les/l9$h;

    invoke-virtual {v3, v4}, Les/l9;->a(Les/l9$h;)V

    .line 19
    iget-object v3, p0, Les/y9;->i:Les/o7;

    invoke-virtual {v3}, Les/o7;->n()Z

    move-result v3

    if-eqz v3, :cond_f

    .line 20
    iget-object v3, p0, Les/y9;->i:Les/o7;

    invoke-virtual {v3}, Les/l9;->p()V

    .line 21
    new-instance v3, Les/ea;

    iget-object v4, p0, Les/y9;->c:Les/y9$f;

    iget-object v4, v4, Les/y9$f;->f:Ljava/util/List;

    invoke-direct {v3, v4}, Les/ea;-><init>(Ljava/util/List;)V

    iput-object v3, p0, Les/y9;->n:Les/ea;

    if-nez v0, :cond_a

    .line 22
    new-instance v3, Les/l7;

    invoke-direct {v3}, Les/l7;-><init>()V

    iput-object v3, p0, Les/y9;->h:Les/m7;

    .line 23
    iget-object v4, p0, Les/y9;->b:Ljava/lang/String;

    invoke-virtual {v3, v4}, Les/m7;->b(Ljava/lang/String;)Z

    .line 24
    iget-object v3, p0, Les/y9;->h:Les/m7;

    invoke-virtual {v3}, Les/m7;->g()Z

    move-result v3

    if-eqz v3, :cond_8

    .line 25
    iget-object v3, p0, Les/y9;->h:Les/m7;

    iget-object v4, p0, Les/y9;->A:Les/m7$h;

    invoke-virtual {v3, v4}, Les/m7;->a(Les/m7$h;)V

    .line 26
    iget-object v5, p0, Les/y9;->h:Les/m7;

    iget-object v3, p0, Les/y9;->c:Les/y9$f;

    iget-wide v6, v3, Les/y9$f;->a:J

    iget-wide v8, v3, Les/y9$f;->b:J

    const/4 v10, 0x0

    invoke-virtual/range {v5 .. v10}, Les/m7;->a(JJZ)V

    .line 27
    iget-object v3, p0, Les/y9;->h:Les/m7;

    invoke-virtual {v3}, Les/m7;->k()V

    goto :goto_4

    .line 28
    :cond_8
    iget-boolean v0, p0, Les/y9;->e:Z

    if-eqz v0, :cond_9

    const/4 v0, 0x1

    goto :goto_4

    :cond_9
    return v1

    :cond_a
    :goto_4
    if-eqz v0, :cond_e

    .line 29
    iget-object v0, p0, Les/y9;->c:Les/y9$f;

    iget v3, v0, Les/y9$f;->c:I

    iput v3, p0, Les/y9;->f:I

    .line 30
    iget v0, v0, Les/y9$f;->d:I

    iput v0, p0, Les/y9;->g:I

    .line 31
    iget-object v0, p0, Les/y9;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_b

    new-instance v0, Ljava/io/File;

    iget-object v3, p0, Les/y9;->b:Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_c

    :cond_b
    const/4 v1, 0x1

    :cond_c
    if-eqz v1, :cond_d

    .line 32
    iget-object v0, p0, Les/y9;->c:Les/y9$f;

    iget-wide v3, v0, Les/y9$f;->b:J

    iget-wide v0, v0, Les/y9$f;->a:J

    sub-long/2addr v3, v0

    goto :goto_5

    :cond_d
    iget-object v0, p0, Les/y9;->b:Ljava/lang/String;

    invoke-direct {p0, v0}, Les/y9;->a(Ljava/lang/String;)J

    move-result-wide v3

    :goto_5
    iget-wide v0, p0, Les/y9;->v:J

    add-long/2addr v3, v0

    iput-wide v3, p0, Les/y9;->o:J

    .line 33
    new-instance v0, Les/v9;

    iget-object v1, p0, Les/y9;->c:Les/y9$f;

    iget v3, v1, Les/y9$f;->c:I

    iget v1, v1, Les/y9$f;->d:I

    invoke-direct {v0, v3, v1}, Les/v9;-><init>(II)V

    iput-object v0, p0, Les/y9;->k:Les/v9;

    .line 34
    iget-object v1, p0, Les/y9;->C:Les/v9$b;

    invoke-virtual {v0, v1}, Les/v9;->a(Les/v9$b;)V

    .line 35
    iget-object v0, p0, Les/y9;->k:Les/v9;

    invoke-virtual {v0}, Les/v9;->a()V

    .line 36
    :cond_e
    iput-boolean v2, p0, Les/y9;->m:Z

    return v2

    :cond_f
    return v1
.end method
